@layout("/common/_container.html",{plugins:["ztree"],js:["/assets/business/order/order_edit.js"]}){

<div class="layui-body-header">
    <span class="layui-body-header-title">修改</span>
</div>

<style>
    .layui-card-body .layui-inline .layui-form-label{
        width: 150px;
    }
    .layui-card-body .layui-block .layui-form-label{
        width: 150px;
    }
</style>
<div class="layui-fluid " style="">
    <div class="layui-card">
        <div class="layui-card-body">
            <div class="layui-inline">
                <div class="layui-input-inline">
                    <label class="layui-form-label">订单编号</label>
                    <label class="layui-form-label" style="text-align: left">
                        ${order.orderNo}
                    </label>
                </div>
                <div class="layui-input-inline" style="margin-left: 100px;">
                    <label class="layui-form-label">订单状态</label>
                    <label class="layui-form-label" style="text-align: left">
                        ${order.orderStatusName}
                    </label>
                </div>
            </div>
            <div class="layui-block">
                <div class="layui-input-inline">
                    <label class="layui-form-label">申请人</label>
                    <label class="layui-form-label" style="text-align: left">
                        ${order.ownerUser}
                    </label>
                </div>
                <div class="layui-input-inline" style="margin-left: 100px;">
                    <label class="layui-form-label">申请时间</label>
                    <label class="layui-form-label" style="text-align: left;">
                        ${order.createTimeStr}
                    </label>
                </div>
            </div>
            <div class="layui-block">
                <div class="layui-input-inline">
                    <label class="layui-form-label">申请回收折扣</label>
                    <label class="layui-form-label" style="text-align: left">
                        ${order.orderRate}
                    </label>
                </div>
                <div class="layui-input-inline" style="margin-left: 100px;">
                    <label class="layui-form-label">申请回收金额</label>
                    <label class="layui-form-label" style="text-align: left">
                        ${order.amount}
                    </label>
                </div>
            </div>
           <!-- <div class="layui-block">
                <div class="layui-input-inline">
                    <label class="layui-form-label">申请回收折扣</label>
                    <label class="layui-form-label" style="text-align: left">
                        ${order.orderRate}
                    </label>
                </div>
                <div class="layui-input-inline" style="margin-left: 100px;">
                    <label class="layui-form-label">实际回收折扣</label>
                    <label class="layui-form-label" style="text-align: left">
                        ${order.payRate}
                    </label>
                </div>
            </div>-->
            @if(order.orderStatus > 0){
            <div class="layui-block">
                <div class="layui-input-inline">
                    <label class="layui-form-label">审核人</label>
                    <label class="layui-form-label" style="text-align: left">
                        ${order.approveUser}
                    </label>
                </div>
                <div class="layui-input-inline" style="margin-left: 100px;">
                    <label class="layui-form-label">审核时间</label>
                    <label class="layui-form-label" style="text-align: left">
                        ${order.updateTimeStr}
                    </label>
                </div>
            </div>
            <div class="layui-block">
                <div class="layui-input-inline">
                    <label class="layui-form-label">审核意见</label>
                    <label class="layui-form-label" style="text-align: left">
                        ${order.remark}
                    </label>
                </div>
            </div>
            @}
        </div>
    </div>
    <div class="layui-card">
        <div class="layui-card-body">

            <div class="layui-block">
                <div class="layui-input-inline">
                    <label class="layui-form-label">分类</label>
                    <label class="layui-form-label" style="text-align: left">
                        ${order.cardCataoryName}
                    </label>
                </div>
                <div class="layui-input-inline" style="margin-left: 100px;">
                    <label class="layui-form-label">面值</label>
                    <label class="layui-form-label" style="text-align: left;">
                        ${order.cardQuotaName}
                    </label>
                </div>
            </div>

            <div class="layui-block">
                <div class="layui-input-inline">
                    <label class="layui-form-label">卡号</label>
                    <label class="layui-form-label" style="text-align: left">
                        ${order.cardNo}
                    </label>
                </div>
                <div class="layui-input-inline" style="margin-left: 100px;">
                    <label class="layui-form-label">卡密</label>
                    <label class="layui-form-label" style="text-align: left;">
                        ${order.cardPassword}
                    </label>
                </div>
            </div>
            <div class="layui-block">
                <div class="layui-input-inline">
                    <label class="layui-form-label">提交面值</label>
                    <label class="layui-form-label" style="text-align: left">
                        ${order.subQuota}
                    </label>
                </div>
                <div class="layui-input-inline" style="margin-left: 100px;">
                    <label class="layui-form-label">实际面值</label>
                    <label class="layui-form-label" style="text-align: left">
                        ${order.itemQuota}
                    </label>
                </div>
            </div>
        </div>
    </div>
    <div class="layui-card">
        <div class="layui-card-body">
            <form id="orderForm" lay-filter="orderForm" class="layui-form" style="">
                <input id="orderId" name="orderId" type="hidden" value="${order.orderId}">
                <div class="layui-block">
                    <div class="layui-input-inline">
                        <label class="layui-form-label">实际折扣</label>
                        @if(order.orderStatus == 0){
                        <div class="layui-input-inline">
                            <input id="payRate" name="payRate" placeholder="请输入实际折扣" type="text" class="layui-input" value="${order.orderRate}" lay-verify="required" required/>
                        </div>
                        @}
                        @if(order.orderStatus > 0){
                        <label class="layui-form-label" style="text-align: left">
                            ${order.payRate}
                        </label>
                        @}
                    </div>
                    <div class="layui-input-inline">
                        <label class="layui-form-label">实际面值</label>
                        @if(order.orderStatus == 0){
                        <div class="layui-input-inline">
                            <input id="itemQuota" name="itemQuota" placeholder="实际面值" type="text" class="layui-input" value="${order.subQuota}" lay-verify="required" required/>
                        </div>
                        @}
                        @if(order.orderStatus > 0){
                        <label class="layui-form-label" style="text-align: left">
                            ${order.itemQuota}
                        </label>
                        @}
                    </div>
                    <div class="layui-input-inline" style="margin-left: 100px;">
                        <label class="layui-form-label">实际回收价格</label>
                        <label class="layui-form-label" id="payAmountLabel" style="text-align: left">
                            ${order.payAmount}
                        </label>
                        <input id="payAmount" name="payAmount" type="hidden"/>
                    </div>
                </div>

                <div class="layui-form-pane">
                    <div class="layui-form-item layui-form-text" style="margin-top: 10px;">
                        @if(order.orderStatus == 0){
                        <label class="layui-form-label">审核意见</label>
                        <div class="layui-input-block">
                            <textarea placeholder="请输入内容" class="layui-textarea" name="remark"></textarea>
                        </div>
                        @}
                    </div>
                </div>

                <div class="layui-form-item">
                    <div class="layui-input-block">
                        @if(order.orderStatus == 0){
                        <button class="layui-btn" lay-filter="btnSubmit" lay-submit>通过</button>
                        <button class="layui-btn" lay-filter="btnFail" lay-submit>拒绝</button>
                        @}
                        <button class="layui-btn layui-btn-primary" type="button" id="backupPage">返回</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>

@}